package com.ruoyi.app.service;

import com.ruoyi.app.domain.MemberUser;
import com.ruoyi.app.domain.OperStaff;

public interface IMemberUserService {

    /**
     * 检查登录名是否已注册
     *
     * @param loginName
     * @return
     */
    int checkLoginNameIsRegister(String loginName);

    MemberUser checkEmailIsRegister(String email);

    OperStaff selectMemberBaseById(String id);
    /**
     * 检查邀请码对应的邀请人是否存在
     * @param recemCode
     * @return
     */
    MemberUser checkRecemIsExist(String recemCode);

    OperStaff checkLogin(String username);

    /**
     * 新增会员基础
     *
     * @param memberBase 会员基础
     * @return 结果
     */
    public int insertMemberUser(MemberUser memberBase);

    public int updateMemberUser(MemberUser memberBase);
}
